package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class Genre.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>name</li>
 * 	</ul>
 * </p>	 
 * @author Tanmoy
 */
public class Genre extends Base implements Serializable {

	private static final long serialVersionUID = -7833854428209884535L;

	@SerializedName("name")
	private String name;
	
	/**
	 * Default Constructor.
	 */
	public Genre() {
		
	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 * The name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 *
	 * @param name 
	 * 		The new name
	 */
	public void setName(String name) {
		this.name = name;
	}	
		
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.BaseBean#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("name:").append("\"").append(name).append("\"").
			append("}");
		return builder.toString();
	}
}
